package com.newegg.nlp.arangodb.model;

import com.arangodb.springframework.annotation.Edge;
import com.arangodb.springframework.annotation.From;
import com.arangodb.springframework.annotation.To;
import com.newegg.nlp.arangodb.BaseModel;

@Edge
public class ItemAdjective extends BaseModel{
	
	@From
	Item item;
	
	@To
	Adjective adjective;
	
	public ItemAdjective(Item item, Adjective adjective) {
		super();
		this.setId(item.getId() + "_" + adjective.getId());
		this.item = item;
		this.adjective = adjective;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public Adjective getAdjective() {
		return adjective;
	}

	public void setAdjective(Adjective adjective) {
		this.adjective = adjective;
	}
}
